// JavaScript Document
 top.moveTo(0,0);
 top.resizeTo(screen.availWidth,screen.availHeight);
 
function contentAutoHeight(){

 var BodyHeight=screen.availHeight;
 var contentHeight=window.frames["blank"].document.getElementById("content").clientHeight;
if (window.XMLHttpRequest) { //Mozilla, Safari,...IE7 

	 
	 if(!window.ActiveXObject){ // Mozilla, Safari,...
	 //alert('Mozilla, Safari');
	  
	  if(BodyHeight-204>contentHeight)
		{
			//alert("1BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=eval(BodyHeight-204)+"px";
			document.getElementById("leftnav").style.height=eval(BodyHeight-204)+"px";
			//alert("container:"+document.getElementById("container").style.height);
		}
		 else if(BodyHeight-204<contentHeight)
		{
			//alert("2BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=eval(contentHeight)+"px";
			document.getElementById("leftnav").style.height=eval(contentHeight)+"px";
		}
	  
	 } else {
		 
	 // alert('IE7/8');

	  if(BodyHeight-275>contentHeight)
		{
			//alert("1BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=eval(BodyHeight-275)+"px";
			document.getElementById("leftnav").style.height=eval(BodyHeight-275)+"px";
		}
		 else if(BodyHeight-275<contentHeight)
		{
			//alert("2BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=eval(contentHeight)+"px";;
			document.getElementById("leftnav").style.height=eval(contentHeight)+"px";
		}
	 }
	} else {
	// alert('IE6');
	 document.getElementById("container").style.cssText="height:100%;";
	 document.getElementById("footer").style.cssText="position:relative;";
	 document.body.style.cssText="height:100%;";
	 if(BodyHeight>contentHeight)
	 {
	 document.getElementById("leftnav").style.height=BodyHeight+"px";
	 }else if(BodyHeight<contentHeight)
	 {
	 document.getElementById("leftnav").style.height=contentHeight+"px";
	 }
         
	} 
	

}